package iot.wlink.network.devices.model.sub;

import iot.wlink.network.devices.model.enums.EventTypeEm;
import iot.wlink.network.devices.model.sub.atom.ValueProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author : willian fu
 * @date : 2021/8/20
 * 功能
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Function {
    //功能符号
    private String symbol;

    //功能名称
    private String name;

    //功能描述
    private String desc;

    //是否异步调用 同步要等待设备返回调用结果，异步不需要
    private Boolean async;

    //是否子设备必须
    private Boolean required;

    //返回值
    private List<ValueProperties> outputs;

    //功能参数
    private List<ValueProperties> inputs;
}
